import 'package:flutter/material.dart';

class GoNavigator {
  static toPage(BuildContext context, Widget pageWidget) {
    Navigator.push(context, MaterialPageRoute(builder: (context){
      return pageWidget;
    }));
  }

  static back(BuildContext context) {
    Navigator.pop(context);
  }
}